package com.gp.demo;

import com.gp.demo.service.TestService;
import com.gp.framework.context.GPApplicationContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 测试启动类
 *
 * @author
 * @create 2017-06-21
 */
public class Test {
    private static final Logger LOGGER = LogManager.getLogger(Test.class);

    public static void main(String[] args) {
        GPApplicationContext context = new GPApplicationContext("application.properties");
        TestService testService = (TestService) context.getProxyBean("testService");
        LOGGER.info(testService.getClass().getName());
        testService.hello("zhangsan", "bj", 18);
        testService.world("aa");
    }
}

